-
Notifications
You must be signed in to change notification settings - Fork 38.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automated cherry pick of #90296: go-to-protobuf: fix rewrite of embedded struct fields #91731
Automated cherry pick of #90296: go-to-protobuf: fix rewrite of embedded struct fields #91731
Conversation
The protobuf generator cannot handle embedded struct fields correctly. When using an embedded field by pointer it produces the error message `unable to get name for tag from struct "...", field ...` The reason is that the name determination evaluating the AST does not handle pointers if the AST does not already contain a field name. This seems to be the case for structs embedded by pointers. Example: ``` type MyStruct struct { *OtherStruct `protobuf:"bytes,1,opt,name=otherStruct"` } ```
@mandelsoft: This cherry pick PR is for a release branch and has not yet been approved by the Patch Release Team. To merge this cherry pick, please ping the kubernetes/patch-release-team in a comment, after it has been approved by the relevant OWNERS. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @mandelsoft. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @smarterclayton |
/assign @lavalamp |
/kind bug /ok-to-test |
same q as other cherry-pick, do we really need to backport this? |
ACK, ok, that seems like a good reason to go back this far. /ok-to-test /hold for getting the binary file which I missed in the original PR out, sorry |
573cd90
to
ad71bca
Compare
/retest |
Binary has been removed, sorry for that. |
/retest |
@lavalamp may I ask you to take another look? Would really appreciate if you approve this PR since we depend on it. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lavalamp, mandelsoft The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Cherry pick of #90296 on release-1.17.
#90296: go-to-protobuf: fix rewrite of embedded struct fields
For details on the cherry pick process, see the cherry pick requests page.
Release note: